﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="NotifyMessageSrhForm.aspx.cs" Inherits="App_Input_NotifyMessageSrhForm" Title="公告查询" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
    function showNotifyMessage(id) {
        window.open('../Input/MessageReadForm.aspx?MESSAGE_ID='+id,'NotifyMessage','scrollbars,resizable,height=520,width=480')
        return false;
    }
</script>
    <table  class="table_border_line" style="background:ffffff">
        <tr>
            <td style="width: 16px; height: 53px">
            </td>
            <td style="height: 53px; width: 68px;">
            发布日期
            </td>
            <td style="height: 53px">
                <asp:TextBox ID="txtBeginDate" runat="server" Width="108px" MaxLength="10" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                ~
                <asp:TextBox ID="txtEndDate" runat="server" Width="108px" MaxLength="10" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                &nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 检 索 " />
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridViewResult" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CssClass="GridView_table" Width="100%" OnPageIndexChanging="GridViewResult_PageIndexChanging" OnRowDataBound="GridViewResult_RowDataBound"
        >
        <Columns>
            <asp:BoundField HeaderText="主题" DataField="Subject">
                <HeaderStyle CssClass="GridView_head_grayblue" />
                <ItemStyle CssClass="GridView_item_left" />
            </asp:BoundField>
            <asp:BoundField HeaderText="通知来源">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="180" />
                <ItemStyle CssClass="GridView_item_center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="发布日期">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="86" />
                <ItemStyle CssClass="GridView_item_center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="阅读次数" DataField="Cnt">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="86" />
                <ItemStyle CssClass="GridView_item_center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="消息类型">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="86" />
                <ItemStyle CssClass="GridView_item_center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="消息状态">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="86" />
                <ItemStyle CssClass="GridView_item_center" />
            </asp:BoundField>
            <asp:TemplateField>
                <HeaderStyle CssClass="GridView_head_grayblue" Width="65" />
                <ItemStyle CssClass="GridView_item_center" />
                <ItemTemplate>
                    <a href="#" onclick="return showNotifyMessage(<%# ((Shpm.App.Input.Bean.MessageBean)Container.DataItem).MessageId%>)">
                    <img src="../../images/info.gif" border="0"/>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>            
        </Columns>
        <PagerStyle HorizontalAlign="Right" />
    </asp:GridView>
</asp:Content>

